import react, { Suspense } from 'react'
import ReactDOM from 'react-dom/client'
import * as antd from 'antd'
import App from '@/App'
import 'virtual:svg-icons-register'
import 'virtual:uno.css'
import 'normalize.css'
import '@/style/index.scss'
// i18n
import './i18n/i18n'

window['react'] = react
window['react-dom'] = ReactDOM
window['antd'] = antd

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)

root.render(
  <Suspense>
    <App />
  </Suspense>
)
